<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>第十四课 BOM</title>
</head> 
<body>
    <a href="./demo1.html">demo1</a>
    <a href="./demo2.html">demo2</a>
    <a href="./demo3.html">demo3</a>
    <a href="./demo4.html">demo4</a>
    <!-- <button id="btn1">按钮</button> -->
    <script>
        // console.log(window.navigator);
        // console.log(window.screen);
        // console.log(window.location);
        // console.log(window.location.href);
        //http://192.168.1.103:8083/index
        // var btn1 = document.getElementById('btn1');
        // btn1.addEventListener('click',function(){
        //     // window.location.assign('https://www.baidu.com');//这里跳转到新的页面还能返回
        //     // window.location.reload(true);
        //     // window.location.replace('https://www.baidu.com');//这里替换了新的页面就不能返回了
        // });
    </script>
</body> 
</html>